package com.cn.study0014.test008;

/**
 * @author lw
 * @ClassName CustomerBiz.java
 * @Description
 * @createTime 2023年05月18日 16:32:00
 */
public class CustomerBiz {
    Customer[] cus=new Customer[5];
    public void addCustomer(Customer cust){
        for (int i = 0; i < cus.length; i++) {
            if (cus[i]==null){
                cus[i]=cust;
                break;
            }
        }
    }
    public void showCustomers(){
        for (int i = 0; i <cus.length ; i++) {
            if (cus[i]!=null){
                cus[i].showCus();
            }

        }
    }

}
